﻿package com.PlantVsZombies.Zombies;

import com.PlantVsZombies.common.Zombie;

public class RandomZombie {
	public static Zombie randomZombie(int type){
		Zombie zmb = null;
		int loction = (int)(Math.random()*5);
		switch (type) {
		case 0:
			zmb = new Zombie_Flag(850, loction*98+20);
			break;
		case 1:
			zmb = new Zombie_Normal(850, loction*98+20);
			break;
		case 2:
			zmb = new Zombie__conehead(850, loction*98+20);
			break;
		case 3:
			zmb = new Zombie_bucket(850, loction*98+20);
			break;
		case 4:
			zmb = new Zombie_Newspaper(850, loction*98+20);
			break;
		case 5:
			zmb = new Zombie_Football(850,loction*98+20);
			break;
		case 6:
			zmb = new Zombie_PoleVaulting(850, loction*98+20);
			break;
		default:
			break;
		}
		//zmb = new Zombie__conehead((int) (500+Math.random()*400), loction*98+20);
		new Thread(zmb).start();
		return zmb;
	}
}
